import React, { useEffect } from 'react'
// import * as echarts from "echarts";
export default function index() {
    useEffect(() => {
        let box: any = document.getElementById('main');

        // var myChart = echarts.init(box as any);

        var option = {
            xAxis: {
                type: 'category',
                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
            },
            yAxis: {
                type: 'value'
            },
            series: [
                {
                    data: [150, 230, 224, 218, 135, 147, 260],
                    type: 'line'
                }
            ]
        };
        // option && 
        // myChart.setOption(option);
    }, [])
    return (

        <div>
            <div id="main" style={{ width: "500", height: "400px" }}></div>
        </div>
    )
}
